<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" action="{% url 'login' %}">
    {% csrf_token %}
    <input name="username" />
    <input name="password" type="password" />
    <button type="submit">登录</button>
    {{  username }}
</form>
</body>
</html>